From: Jonas Dreßler Date: Wed, 3 Mar 2021 11:37:51 +0000 (+0100) Subject: workspacesView: Clip the SecondaryMonitorDisplay instead of the view X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7f90a46f8c2dbac4e1bee463cfcdaf6237271518;p=gnome-shell.git workspacesView: Clip the SecondaryMonitorDisplay instead of the view Make the SecondaryMonitorDisplay a bit more similar to the ControlsManager container on the primary monitor, and clip that widget instead of the WorkspacesViews on secondary monitors. This will allow us to overpaint the WorkspacesView allocation and paint the WindowPreview overlays like the title and close button outside the allocation with the next commit. Part-of: --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 502590418..f34e6d838 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -28,7 +28,6 @@ var WorkspacesViewBase = GObject.registerClass({ _init(monitorIndex, overviewAdjustment) { super._init({ style_class: 'workspaces-view', - clip_to_allocation: monitorIndex !== Main.layoutManager.primaryIndex, x_expand: true, y_expand: true, }); @@ -615,6 +614,7 @@ class SecondaryMonitorDisplay extends St.Widget { index: this._monitorIndex, work_area: true, }), + clip_to_allocation: true, }); this.connect('destroy', () => this._onDestroy());